import request from "@/utils/request";

export function getDish(params) {
    return request({
      url: "/dish/page",
      method: "get",
      params,
    });
  }
  export function getList(params) {
    return request({
      url: "/category/list",
      method: "get",
      params,
    });
  }

export function createDish(data) {
    return request({
      url: "/dish",
      method: "post",
      data,
    });
}
export function change(params,is) {
  return request({
    url: `/dish/status/${is}`,
    method: "post",
    params,
  });
}

